package com.ziyun.erp.modules.store.storeGoodsCategory.dao;

import com.ziyun.erp.modules.store.storeGoodsCategory.entity.StoreGoodsCategoryTwdEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.Null;
import java.util.List;
import java.util.Map;

/**
 * 图文宝商品分类表
 *
 * @author 'lu'
 * @email
 * @date 2018-12-22 16:24:11
 */
public interface StoreGoodsCategoryTwdDao extends BaseMapper<StoreGoodsCategoryTwdEntity> {
    /**
     * 单条伪删除
     *
     * @param map
     * @param id
     */
    void updateByMap(@Param("map") Map<String, Object> map, @Param("id") Integer id);

    /**
     * 多条伪删除
     *
     * @param map
     * @param ids
     */
    void updateAllByMap(@Param("map") Map<String, Object> map, @Param("ids") List<String> ids);

    /**
     * 商品列表添加图文宝分类远程搜索
     *
     * @param params
     * @return
     */
    List<StoreGoodsCategoryTwdEntity> selectTwbList(@Param("map") Map<String, Object> params);

    //List<StoreGoodsCategoryTwdEntity> selectTwbCategoryList(@Param("map") Map<String, Object> params);
}
